export const registerShowTools = (Vue) => {
	Vue.prototype.$showToast = (title,icon='none',mask=true) => {
		uni.showToast({
			title,
			icon,
			mask,
			duration: 2000
		})
	}
	Vue.prototype.$showModal = (content,confirmCb) => {
		uni.showModal({
			title: '提示',
			content,
			success:(res) => {
				if(res.confirm) confirmCb && confirmCb()
			}
		})
	}
}